package Constants;

public class RedisConstant {
    // 验证码key
    public static final String USER_CODE_KEY = "user:code:";

    // 验证码过期时间
    public static final Integer CODE_TTL = 5;
    public static final String USER_COUNT_KEY = "user:count:";

    public static final Integer CODE_COUNT = 50;

    //个人信息的过期时间
    public static final Integer USER_INFO_TTL = 10;

    //步长
    public static final Integer STEP = 1;

    //数量的过期时间
    public static final Integer COUNT_TTL = 1;


    //未完成的竞赛list
    public static final String UNFINISHED_EXAM_LIST = "exam:unfinished:list";

    //历史竞赛list
    public static final String HISTORY_EXAM_LIST = "exam:history:list";

    //竞赛详情key
    public static final String EXAM_DETAIL_KEY = "exam:detail:";

    //用户竞赛列表，当前用户参加的竞赛
    public static final String USER_EXAM_LIST = "user:exam:list:";

    //个人中心
    public static final String USER_CENTER = "user:center:";

    //题目列表id，拿到上一题或者下一题
    public static final String QUESTION_LIST_ID = "question:list:id";

    //竞赛题目列表id，当前竞赛中的题目id
    public static final String EXAM_QUESTION_ID_KEY = "exam:questionList:id:";

    //用户信息列表id
    public static final String USER_INFO_LIST_ID = "user:info:list:";

    //用户信息详情
    public static final String USER_INFO_DETAIL = "user:info:detail:";
}
